#encoding:utf8
#excute when scrapy finish!

import functools

from handler import dbhandle

from inc.dbmgr import DbMgr
from config.gl import MONGO

def _kanbook():
	db = DbMgr(MONGO["HOST"], MONGO["PORT"])
	db.use("kankindle")
	collection = db.use_collection("books")
	dbhandle.sr_doubanbook_score(collection, functools.partial(dbhandle.batch_download, collection))






